package com.jiujichaoshi.oauth.server.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: <p>首页，验证无需认证</p>
 *
 * @author YangLong [410357434@163.com]
 * @version V1.0
 * @date 2021/7/7
 */
@Api(tags = "首页")
@RestController
@RequestMapping()
public class IndexController {

    @ApiOperation("首页")
    @GetMapping({"/", "/index"})
    public String index() {
        return "welcome,this is a sample for oauth2 server.";
    }
}
